package com.bschlearn.group.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ConfigurationProperties(prefix="kkk.hello")
@PropertySource(value ="classpath:resource.properties")
public class Admin{
	/**
	 * 姓名
	 */
	private String name;
	
	/**
	 * 密码
	 */
	private String pwd;
	
	/**
	 * 
	 * <p>Title:无参构造 </p> 
	 * <p>Description: </p>
	 */
	public Admin() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Admin(String name, String pwd) {
		super();
		this.name = name;
		this.pwd = pwd;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Admin [name=");
		builder.append(name);
		builder.append(", pwd=");
		builder.append(pwd);
		builder.append("]");
		return builder.toString();
	}
	

}
